<?php
if(!empty($_POST))
{
	$file = upload($_FILES['file']);
	$_POST['time'] = time();
	$id = $_POST['Id'];
	$_POST['file'] = $file;
	$result = update('about', $_POST, $id);
	if($result)
	{
		echo '更新成功';
		header('Refresh:1;index.php?a=admin&b=summary&c=index');
		die;
	}else
	{
		echo '更新失败';
		header('Refresh:1;index.php?a=admin&b=summary&c=index');
		die;	
	}
}
$re = selectone('about','cate=17');
//$cate = getcate($ree);
//die;
include('app/admin/idea/html/index.html');
?>